<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-md-6">
        <h2>添加分类</h2>

        <ol class="breadcrumb">
            <li>
                <a href="{:U('admin/Catalog/index')}">分类管理</a>
            </li>
            <li class="active">
                <strong>添加分类</strong>
            </li>
        </ol>
    </div>
    <div class="col-md-6">
    </div>
</div>
<div class="wrapper wrapper-content">
  	<div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>添加分类</h5>
        </div>
        <div class="ibox-content">
            <form method="post" action="{:U('admin/Catalog/do_add')}" class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-2 control-label">分类名称：</label>
                    <div class="col-sm-4">
                        <input name="name" type="text" class="form-control">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">父类编号：</label>
                    <div class="col-sm-4">
                        <select name="parent_id" class="form-control">
                            <option value="0">一级分类</option>
                            <volist name="level1" id="l1">
                                <option value="{$l1.id}">└───{$l1.name}</option>
                                <?php $level2=M('product_catalog')->where('parent_id='.$l1['id'])->select();?>
                                <volist name="level2" id="l2">
                                    <option value="{$l2.id}">└──────{$l2.name}</option>
                                    <?php $level3=M('product_catalog')->where('parent_id='.$l2['id'])->select();?>
                                </volist>
                            </volist>
                        </select>
                    </div>
                </div>
                 <div class="form-group"><label class="col-sm-2 control-label"></label>
                    <div class="col-sm-4">
                        <p style="text-align:right"><button type="submit" class="btn btn-success">提交</button></p>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
   
</script>


        